/*
 * Pig.cpp
 *
 *  Created on: Nov 15, 2012
 *      Author: lucas
 */

#include "Pig.h"

Pig::Pig(double x, double y) {
	this->setX(x);
	this->setY(y);
	this->setImagePath("cerdito.png");
	this->setCollisionMask(MASK_EGG_PIG_HEAP);
	this->setCollisionRadius(50);
	this->setHitPoints(500);
	this->setPhysicallyStatic(true);
	this->setDamageToBird(MAX_DAMAGE);
}

Pig::Pig(const Pig& p) : VisibleElement(p) {

}

VisibleElement* Pig::makeCopy() {
	return new Pig(*this);
}

void Pig::onCollisionResponse(PhysicsElement &other) {
	this->beHit(other.getDamageToPig());
}

Pig::~Pig() {
	// TODO Auto-generated destructor stub
}
